package com.dunshan.order.controller;


import com.dunshan.order.service.UmsMemberService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 会员表 前端控制器
 * </p>
 *
 * @author dunshan
 * @since 2021-10-06
 */
@Log4j2
@RestController
@RequestMapping("/order/member")
public class UmsMemberController {

    @Autowired
    private StringRedisTemplate redisTemplate;


    @Autowired
    UmsMemberService umsMemberService;

    @GetMapping("/{id}")
    public Object getAdd(@PathVariable Integer id) {
        log.info(id);
        return umsMemberService.list(null);
    }


}

